<template>
	<view>
		<view class="Input">
			<view class="er">提现金额</view>
			<view class="money">
				￥
				<u-input v-model="values" :type="type" :border="false" :clearable="true" />
			</view>

		</view>
		<view class="yu">
			<view class="name">充值到</view>
			<view class="radio">
				<u-radio-group v-model="value" @change="radioGroupChange">
					<u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name" :disabled="item.disabled">
						{{item.name}}
					</u-radio>
				</u-radio-group>
			</view>
		</view>
		<view class="xia">下一步</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '余额',
						disabled: false
					},

				],
				// u-radio-group的v-model绑定的值如果设置为某个radio的name，就会被默认选中
				value: '余额',
			}
		},
		methods: {
			// 选中某个单选框时，由radio时触发
			radioChange(e) {
				// console.log(e);
			},
			// 选中任一radio时，由radio-group触发
			radioGroupChange(e) {
				// console.log(e);
			}
		}
	}
</script>

<style lang="scss">
	
	page {
		background-color: #F3F3F3;
	}
	.xia{
		width: 90%;
		margin: auto;
		line-height: 70rpx;
		height: 70rpx;
		background-color: #00c6c2;
		font-size: 26rpx;
		color: #fff;
		text-align: center;
	}

	.Input {
		padding: 25rpx 25rpx 0rpx 25rpx;
		background-color: #fff;

		.er {
			font-size: 24rpx;
			color: #000000;
		}

		.money {
			padding: 15rpx 0;
			border-bottom: 1rpx solid #eee;
			font-size: 26rpx;
			color: #000000;
			display: flex;
			align-items: center;


			u-input {
				font-size: 50rpx;
				padding-left: 15rpx;
			}
		}


	}

	.yu {
		padding: 25rpx;
		background-color: #fff;
		margin-top: 10rpx;

		.name {
			font-size: 26rpx;
			color: #000000;
		}

		.radio {
			display: flex;
			align-items: center;



		}
	}
</style>
